package com.ruoyi.appService.careeranchor.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.appService.careeranchor.mapper.ZTestCareeranchorMapper;
import com.ruoyi.appService.careeranchor.domain.ZTestCareeranchor;
import com.ruoyi.appService.careeranchor.service.IZTestCareeranchorService;

/**
 * 职业锚测试题Service业务层处理
 *
 * @author anjiao
 * @date 2025-05-10
 */
@Service
public class ZTestCareeranchorServiceImpl extends ServiceImpl<ZTestCareeranchorMapper, ZTestCareeranchor> implements IZTestCareeranchorService {
    @Autowired
    private ZTestCareeranchorMapper zTestCareeranchorMapper;

    /**
     * 查询职业锚测试题
     *
     * @param id 职业锚测试题主键
     * @return 职业锚测试题
     */
    @Override
    public ZTestCareeranchor selectZTestCareeranchorById(Long id) {
        return zTestCareeranchorMapper.selectZTestCareeranchorById(id);
    }

    /**
     * 查询职业锚测试题列表
     *
     * @param zTestCareeranchor 职业锚测试题
     * @return 职业锚测试题
     */
    @Override
    public List<ZTestCareeranchor> selectZTestCareeranchorList(ZTestCareeranchor zTestCareeranchor) {
        return zTestCareeranchorMapper.selectZTestCareeranchorList(zTestCareeranchor);
    }

    /**
     * 新增职业锚测试题
     *
     * @param zTestCareeranchor 职业锚测试题
     * @return 结果
     */
    @Override
    public int insertZTestCareeranchor(ZTestCareeranchor zTestCareeranchor) {
            return zTestCareeranchorMapper.insertZTestCareeranchor(zTestCareeranchor);
    }

    /**
     * 修改职业锚测试题
     *
     * @param zTestCareeranchor 职业锚测试题
     * @return 结果
     */
    @Override
    public int updateZTestCareeranchor(ZTestCareeranchor zTestCareeranchor) {
        return zTestCareeranchorMapper.updateZTestCareeranchor(zTestCareeranchor);
    }

    /**
     * 批量删除职业锚测试题
     *
     * @param ids 需要删除的职业锚测试题主键
     * @return 结果
     */
    @Override
    public int deleteZTestCareeranchorByIds(Long[] ids) {
        return zTestCareeranchorMapper.deleteZTestCareeranchorByIds(ids);
    }

    /**
     * 删除职业锚测试题信息
     *
     * @param id 职业锚测试题主键
     * @return 结果
     */
    @Override
    public int deleteZTestCareeranchorById(Long id) {
        return zTestCareeranchorMapper.deleteZTestCareeranchorById(id);
    }
}